"""
抓图片视频 音频 都不用看 response  且只有图片看 preview
视频 音频 不会再 preview进行展示

图片音频视频 不能以我们处理字符的形式进行处理
"""
import requests
# 图片地址
url="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fa2%2F4b%2F39%2Fa24b39d6b0a9fee9a4ed1ba52055c774.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650030650&t=a2f4a335cb319f557cb0ad36110f2484"

headers={
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36",
}
response=requests.get(url=url,headers=headers)
data=(response.content)
print(type(data))
with open("图片.jpg","wb")as fi1:
     fi1.write(data)
















